package integration;
import integration.beans.Promotion;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

public class PromotionDAOImpl extends UnicastRemoteObject implements PromotionDAORemote {
	protected PromotionDAO dao;
	public PromotionDAOImpl (PromotionDAO unDAO) throws RemoteException
	{
		dao = unDAO;
	}
	public Promotion lire(String fileName) throws RemoteException
	{
		return dao.lire(fileName); //appel du traitement local
	}

}
